﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ICM_Requisition_Approve.aspx.cs" Inherits="KPIS.GERP.GIMS.APP.APP_UI.Edit_Form.ICM_Requisition_Approve" %>

<html >
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <title>รายละเอียดการเบิกของ</title>
    <link rel="StyleSheet" href="../../Styles/StyleSheet.css" type="text/css"/>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" >
    </asp:ScriptManager>
              <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
                      <script type="text/javascript" src="../../Scripts/Common.js"></script>
                      <script type="text/javascript">
                       function GetRadWindow() 
                       {
                            var oWindow = null;
                            if (window.radWindow)
                                oWindow = window.RadWindow; 
                            else if (window.frameElement.radWindow)
                                oWindow = window.frameElement.radWindow; 
                            return oWindow;
                        }
                       function CloseWindow() 
                       {
                             GetRadWindow().Close();
                       }
                      </script>
              </telerik:RadCodeBlock>
              <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
                   <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="Panel1">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                                <telerik:AjaxUpdatedControl ControlID="Panel2" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                        <telerik:AjaxSetting AjaxControlID="Panel2">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                                <telerik:AjaxUpdatedControl ControlID="Panel2" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                   </AjaxSettings>     
              </telerik:RadAjaxManager> 
              <%--<div class="moduleContent1000">
                        <div class="moduleDivBottom1000">
                              <asp:Panel ID="Panel2" runat="server" CssClass="contentPaneDiv" Height="30px" ScrollBars="Auto" >--%>
                  <asp:Panel ID="panelCommand" runat="server">
                        <div class="bigModulePaneFull">
                            <div class="bigModuleBottomPaneFull">
                                  <table cellpadding="0" cellspacing="0" align ="center">
                                      <tr class="command-list">
                                               <td class="command-item" style="border: none">
                                            <asp:LinkButton ID="btnApprove" runat="server" CssClass="LinkButton" OnClick="btnApprove_Click">
                                                <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/AddRecord.gif" />&nbsp;&nbsp;อนุมัติรายการนี้
                                            </asp:LinkButton>
                                        </td>
                                        <td class="command-item">
                                            <asp:LinkButton ID="btnReject" runat="server" CssClass="LinkButton" >
                                                <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Delete.gif" />&nbsp;&nbsp;ตีกลับรายการนี้
                                            </asp:LinkButton>
                                            <telerik:RadToolTip runat="server" ID="TipAddNormal" Width="400px" Height="70px" TargetControlID="btnReject" ShowEvent="OnClick"
                                                IsClientID="false" Animation="Fade" Position="BottomRight" Skin="Default" Modal="true" ManualClose="true">
                                                    <table width="100%">
                                                        <tr>
                                                            <td>
                                                                <table width="98%" cellpadding="0" cellspacing="0" class="font-label">
                                                                    <tr>
                                                                        <td>
                                                                            เหตุผลในการตีกลับรายการนี้ : 
                                                                        </td>
                                                                        <td>
                                                                             <telerik:RadTextBox ID="txtRemarkCancel" runat ="server" TextMode="MultiLine" Height="55px" Width="230px" />
                                                                            <%-- &nbsp;<label id="Label1" runat="server"><font color="red">*</font></label>--%>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                             <td colspan="2" align ="center">
                                                                                    <asp:LinkButton ID="btnSave" runat="server" CssClass="LinkButton" Visible="true" onclick="btnSave_Click">
                                                                                        <img style="border:0px;vertical-align:middle;" alt="" src="../Image/Button/btnSave.gif" />&nbsp;&nbsp;ตกลง
                                                                                    </asp:LinkButton>
                                                                             </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </telerik:RadToolTip>
                                        </td>
                                       </tr>
                                  </table>
                            </div>
                      </div>          
              </asp:Panel>
                         
              <div class="moduleContent1000">
                    <div class="moduleDivBottom1000">
                             <asp:Panel ID="Panel1" runat="server" CssClass="contentPaneDiv" Height="450px" ScrollBars="Auto" align = "center" >             
                                           <fieldset >
                                                        <legend><asp:Label ID="lblTitle" runat="server" Font-Bold="true" Text ="รายละเอียดของผู้เบิกของ" align="center"/></legend>
                                                        <div class="formList-detail">       
                                                               <table align ="center">                     
                                                                             <tr>
                                                                                    <td>
                                                                                         <asp:Label CssClass="font-label" runat = "server" ID= "lblRequisitionDate" Text = "วันที่ขอเบิกของ          : " Font-Bold="true" Width="150px"/>
                                                                                    </td>
                                                                                    <td>
                                                                                         <asp:Label CssClass="font-label" runat = "server" ID= "pRequisitionDate" Text = "rrr" Font-Bold="true" Width="300px"/>
                                                                                    </td>
                                                                                    <td>
                                                                                         <asp:Label CssClass="font-label" runat = "server" ID= "lblRequisitionCode" Text = "เลขที่ขอเบิกของ          : " Font-Bold="true" Width="150px"/>
                                                                                    </td>
                                                                                    <td>
                                                                                         <asp:Label CssClass="font-label" runat = "server" ID= "pRequisitionCode" Text = "rrr" Font-Bold="true" Width="300px"/>
                                                                                    </td>
                                                                             </tr>
                                                                             <tr>
                                                                                    <td>
                                                                                         <asp:Label CssClass="font-label" runat = "server" ID= "lblEmployeeName" Text = "ชื่อผู้ขอเบิกของ          : " Font-Bold="true" Width="150px"/>
                                                                                    </td>
                                                                                    <td>
                                                                                         <asp:Label CssClass="font-label" runat = "server" ID= "pEmployeeName" Text = "rrr" Font-Bold="true" Width="300px"/>
                                                                                    </td>
                                                                                    <td>
                                                                                         <asp:Label CssClass="font-label" runat = "server" ID= "lblOrganizeName" Text = "หน่วยงานที่ผู้ขอสังกัด          : " Font-Bold="true" Width="150px"/>
                                                                                    </td>
                                                                                    <td>
                                                                                         <asp:Label CssClass="font-label" runat = "server" ID= "pOrganizeName" Text = "rrr" Font-Bold="true" Width="300px"/>
                                                                                    </td>
                                                                            </tr>
                                                                            <tr>
                                                                                    <td>
                                                                                         <asp:Label CssClass="font-label" runat = "server" ID= "lblDescriptionRequest" Text = "รายการเบิกของ          : " Font-Bold="true"/>
                                                                                    </td>
                                                                                    <td colspan="3">
                                                                                         <asp:Label CssClass="font-label" runat = "server" ID= "pDescriptionRequest" Text = "rrr" Font-Bold="true"/>
                                                                                    </td>
                                                                            </tr>
                                                                            <tr>
                                                                                    <td>
                                                                                         <asp:Label CssClass="font-label" runat = "server" ID= "lblRemark" Text = "รายละเอียดเพิ่มเติมสำหรับการเบิกของ          : " Font-Bold="true"/>
                                                                                    </td>
                                                                                    <td colspan="3">
                                                                                         <asp:Label CssClass="font-label" runat = "server" ID= "pRemark" Text = "rrr" Font-Bold="true"/>
                                                                                    </td>
                                                                            </tr>
                                                            </table>
                                                     </div>
                                             </fieldset>  
                                             <asp:Panel ID="panelHeaderList" runat="server" align="center">
                                                        <div class="header-grid">
                                                            <asp:Label ID="lblHeaderList" runat="server" Text="รายการของที่ขอเบิกมา"></asp:Label>
                                                        </div>
                                             </asp:Panel>      
                                             <table align="center">
                                                        <tr>
                                                               <td>
                                                                       <telerik:RadGrid ID="grdRequisition" runat="server" AutoGenerateColumns="false"
                                                                                    AllowMultiRowEdit="false" AllowMultiRowSelection="true" ShowStatusBar="true"
                                                                                    Width="922px" Height="252px" AllowPaging="true" AllowFilteringByColumn="true"
                                                                                    GroupingSettings-GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;"
                                                                                    GroupingSettings-GroupContinuedFormatString=""
                                                                                    GroupingSettings-GroupContinuesFormatString=""
                                                                                    GroupingSettings-GroupSplitFormat=""
                                                                                    OnNeedDataSource="grdRequisition_NeedDataSource" align ="left">
                                                                                    <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" GroupLoadMode="Client"
                                                                                        DataKeyNames="requisition_code" NoMasterRecordsText="< ไม่มีข้อมูล >" GroupsDefaultExpanded="true">
                                                                                        <RowIndicatorColumn>
                                                                                            <HeaderStyle Width="20px" />
                                                                                        </RowIndicatorColumn>
                                                                                        <ExpandCollapseColumn>
                                                                                            <HeaderStyle Width="20px" />
                                                                                        </ExpandCollapseColumn>
                                                                                        <Columns>   
                                                                                            <telerik:GridBoundColumn DataField="requisition_code" 
                                                                                                UniqueName="requisition_code"
                                                                                                FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                                                                CurrentFilterFunction="Contains" ShowFilterIcon="false" Visible="false" >
                                                                                            </telerik:GridBoundColumn>
                                                                                            <telerik:GridBoundColumn DataField="requisiton_des_item" 
                                                                                                UniqueName="requisiton_des_item"
                                                                                                FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                                                                CurrentFilterFunction="Contains" ShowFilterIcon="false" Visible="false" >
                                                                                            </telerik:GridBoundColumn>
                                                                                            <telerik:GridBoundColumn DataField="requisition_item" 
                                                                                                UniqueName="requisition_item"
                                                                                                FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                                                                CurrentFilterFunction="Contains" ShowFilterIcon="false" Visible="false" >
                                                                                            </telerik:GridBoundColumn>
                                                                                            <telerik:GridBoundColumn DataField="icm_res_item_seq" 
                                                                                                UniqueName="icm_res_item_seq"
                                                                                                FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                                                                CurrentFilterFunction="Contains" ShowFilterIcon="false" Visible="false" >
                                                                                            </telerik:GridBoundColumn>
                                                                                            <telerik:GridBoundColumn DataField="icm_res_item_name" 
                                                                                                HeaderText="รายการวัสดุที่เบิกของออก" UniqueName="icm_res_item_name" 
                                                                                                FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                                                                                CurrentFilterFunction="Contains" ShowFilterIcon="false" 
                                                                                                HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                                                            </telerik:GridBoundColumn>
                                                                                            <telerik:GridBoundColumn DataField="quantity" 
                                                                                                HeaderText="จำนวน (หน่วย)" UniqueName="quantity" HeaderStyle-Width="140px"
                                                                                                FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                                                                                CurrentFilterFunction="Contains" ShowFilterIcon="false" 
                                                                                                HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                                                            </telerik:GridBoundColumn>
                                                                                        </Columns>
                                                                                        <PagerStyle Mode="NumericPages" AlwaysVisible="true" 
                                                                                            FirstPageToolTip="กลับหน้าแรก" LastPageToolTip="ไปหน้าสุดท้าย" 
                                                                                            NextPagesToolTip="หน้าถัดไป" NextPageToolTip="หน้าถัดไป" 
                                                                                            PrevPagesToolTip="ย้อนกลับ" PrevPageToolTip="ย้อนกลับ" />
                                                                                        </MasterTableView>
                                                                            <GroupingSettings GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;" 
                                                                                GroupContinuedFormatString="" GroupContinuesFormatString="" 
                                                                                GroupSplitFormat="" />
                                                                            <ClientSettings EnableRowHoverStyle="True">
                                                                                <Selecting AllowRowSelect="true" />
                                                                                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                                                            </ClientSettings>
                                                                        </telerik:RadGrid> 
                                                               </td>
                                                        </tr>
                                             </table>        
                       </asp:Panel>      
                    </div>
              </div>                                   
              
    </form>
</body>
</html>
